package com.cl.code.database.mbp.log;

import org.apache.ibatis.logging.LogFactory;
import org.springframework.boot.context.event.ApplicationStartingEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author chengliang
 * @since 1.0.0
 */
public class CustomLogRegister implements ApplicationListener<ApplicationStartingEvent> {

    @Override
    public void onApplicationEvent(ApplicationStartingEvent event) {
        LogFactory.useCustomLogging(CustomDataLog.class);
    }

}